import request from '@/utils/request'

// 查询页面图片列表
export function listPagephoto(query) {
  return request({
    url: '/pagephoto/list',
    method: 'get',
    params: query
  })
}

// 查询页面图片详细
export function getPagephoto(id) {
  return request({
    url: '/pagephoto/' + id,
    method: 'get'
  })
}

// 新增页面图片
export function addPagephoto(data) {
  return request({
    url: '/pagephoto',
    method: 'post',
    data: data
  })
}

// 修改页面图片
export function updatePagephoto(data) {
  return request({
    url: '/pagephoto',
    method: 'put',
    data: data
  })
}

// 删除页面图片
export function delPagephoto(id) {
  return request({
    url: '/pagephoto/' + id,
    method: 'delete'
  })
}

// 导出页面图片
export function exportPagephoto(query) {
  return request({
    url: '/pagephoto/export',
    method: 'get',
    params: query
  })
}